<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/11
 * Time: 15:20
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait VipTrait
{
    use BaseTrait;
    // 验证秘钥
    protected $loginSession;
    // 会员卡ID
    protected $vip_card_id;
    // 用户ID
    protected $user_id;

    public function __construct(Request $request)
    {
        $this->loginSession = $request->input('loginSession', '');
        $this->vip_card_id = $request->input('vip_card_id', 0);
        $this->user_id = $request->input('user_id', 0);
    }
}